package com.example.administrator.myrxjavademo.net.api;

import com.example.administrator.myrxjavademo.net.model.HttpResult;
import com.example.administrator.myrxjavademo.net.model.enity.BannerResponse;
import com.example.administrator.myrxjavademo.net.model.enity.UserPavilionResponse;

import java.util.ArrayList;
import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by zhangwentao on 2017/1/11.
 */

public interface ApiService {


//============================= conf ============================================//

    /**
     * 获取banner图
     *
     * @param id 地方錧id
     * @return
     */
    @GET("v1/conf/banner")
    Observable<HttpResult<ArrayList<BannerResponse>>> getBanner(@Query("pavilion_id") String id);


    /**
     * 选品上的显示的地方馆
     *
     * @param map
     * @return
     */
    @GET("/v1/user/pavilion")
    Observable<HttpResult<UserPavilionResponse>> getPavilion(@QueryMap Map<String, Object> map);
}
